import Vue from "vue";
import Router from "vue-router";
Vue.use(Router);

export default new Router({
  mode: "history",
  base: process.env.BASE_URL,
  routes: [
    {
      path: "/",
      component: () => import("./views/Home.vue"),
      children: [
        {
          path: "/",
          name: "home",
          component: () => import("./components/HomeBanner.vue")
        },
        {
          path: "production",
          name: "production",
          component: () => import("./views/financialmanagement/ProductListBox")
        },
        {
          path: "CreditDisplay",
          name: "CreditDisplay",
          component: () => import("./views/credit/CreditDisplay.vue")
        },
        {
          path: "selectCard",
          name: "selectCard",
          component: () => import("./views/credit/selectCard.vue")
        },
        {
          path: "orderCardPre",
          name: "orderCardPre",
          component: () => import("./views/orderCardPre")
        },
        {
          path: "orderCardRes",
          name: "orderCardRes",
          component: () => import("./views/orderCardRes")
        },
        {
          path: "ProductionList",
          name: "ProductionList",
          component: () => import("./views/financialmanagement/ProductionList")
        },
        {
          path: "/ProductMenu",
          name: "ProductMenu",
          component: () => import("./views/financialmanagement/ProductMenu")
        },
        {
          path: "/ProductDetail",
          name: "ProductDetail",
          component: () => import("./views/financialmanagement/ProductDetail")
        }
      ]
    },
    {
      path: "/CsiiTest",
      name: "CsiiTest",
      component: () => import("./views/CsiiTest")
    }
  ]
});
